package net.pinnoocle.playshoppc.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.pinnoocle.playcommon.response.BaseResult;
import net.pinnoocle.playdao.entity.page.PageModel;
import net.pinnoocle.playdao.entity.shopPc.finance.ShopFinanceDetailVO;
import net.pinnoocle.playdao.entity.shopPc.finance.ShopFinanceListPageVo;
import net.pinnoocle.playdao.entity.shopPc.finance.ShopFinanceListSearchParams;
import net.pinnoocle.playservice.service.impl.ShopFinanceServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ye
 * @Description
 * @create 2021-11-13 9:38
 */
@RestController
@RequestMapping("/finance")
@Api(tags = "店铺财务")
public class FinanceController {

    @Autowired
    ShopFinanceServiceImpl shopFinanceService;

    @GetMapping("shopFinanceList")
    @ApiOperation("门店资产概况")
    public BaseResult<ShopFinanceDetailVO> shopFinanceList(ShopFinanceListSearchParams params){
        return new BaseResult<ShopFinanceDetailVO>().ok(shopFinanceService.shopFinanceDetail(params));
    }
}
